<template>
  <div class="body">
    <el-dropdown class="dropdown">
      <img class="avatar" src="@/assets/images/avatar.jpg" alt=""/>
      <el-dropdown-menu slot="dropdown">
        <el-dropdown-item icon="el-icon-plus">个人中心</el-dropdown-item>
        <el-dropdown-item icon="el-icon-circle-plus-outline"
          >退出登录</el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown>
  </div>
</template>

<script>
export default {
  name: "LayoutHeader",
};
</script>

<style scoped lang="less">
.body {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  height: 60px;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: flex-end;
  .avatar {
    z-index: 99;
    margin: 10px 20px 0 0;
    height: 40px;
    width: 40px;
    border-radius: 10%;
  }
}
</style>